﻿using System;
using System.Collections.Generic;
using WS.EKA.Model;
using WS.EKA.Utilities.Consts;

namespace WS.EKA.ServiceInterface
{
    public interface IProduct
    {
        Product GetProductByID(Guid id);
        List<SimpleProduct> GetProductNameList();
        Dictionary<string, Object> GetProductListByCondition(int ProductCategoryID, int pageIndex, int pageCount, ProductSort sorts, bool isASC);
        /// <summary>
        /// Todo:搜索是基于当前小类别？
        /// </summary>
        /// <param name="ProductCategoryID"></param>
        /// <param name="?"></param>
        /// <returns></returns>
        Dictionary<string,Object> GetProductListByName(int ProductCategoryID, int pageIndex, int pageCount, ProductSort sorts, bool isASC, string kewWords);

        Dictionary<string, Object> GetProductListByPriceZoneAndBrand(int ProductCategoryID, int pageIndex, int pageCount, ProductSort sorts, bool isASC,
            decimal minPrice, decimal maxPrice,string brand);

        List<ProductAttribute> GetProductAttribute(Guid productGuid);
    }
}
